package com.longshihan.carservice.service.order;

import com.github.pagehelper.PageInfo;
import com.longshihan.carservice.model.OrderDomain;
import com.longshihan.carservice.model.OrderGoodsDomain;

import java.util.List;

public interface OrderService {

    /**
     * 更新商品
     *
     * @return
     */
    int createOrder(String userId, OrderDomain orderDomain);

    /**
     * 获取用户所有商品
     *
     * @return
     */
    OrderDomain getOrderGoods(String orderId);

    PageInfo<OrderDomain> getUserOrder(String userId, int pageNum, int pageSize);

}
